﻿<li class="dropdown" ng-class="{ 'open': isVisible }" ng-click="show()">
    <a href="javascript:;" class="dropdown-toggle">
        {{ selectedItem || caption }}
        <span class="caret"></span>
    </a>
    <ul class="dropdown-menu" role="menu">
        <li ng-show="caption">
            <a href="javascript:;" ng-click="selectItem(null); $event.stopPropagation();">{{ caption }}</a>
        </li>
        <li ng-repeat="item in items">
            <a href="javascript:;" ng-click="selectItem(item); $event.stopPropagation();"> {{ item }}</a>
        </li>
    </ul>
</li>